package com.xiexin.orderset.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xiexin.common.annotation.Excel;
import com.xiexin.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 预约设置对象 ordersetting
 * 
 * @author xieixin
 * @date 2022-03-25
 */
public class Ordersetting extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 约预日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "约预日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderDate;

    /** 可预约人数 */
    @Excel(name = "可预约人数")
    private Long number;

    /** 已预约人数 */
    @Excel(name = "已预约人数")
    private Long reservations;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderDate(Date orderDate) 
    {
        this.orderDate = orderDate;
    }

    public Date getOrderDate() 
    {
        return orderDate;
    }
    public void setNumber(Long number) 
    {
        this.number = number;
    }

    public Long getNumber() 
    {
        return number;
    }
    public void setReservations(Long reservations) 
    {
        this.reservations = reservations;
    }

    public Long getReservations() 
    {
        return reservations;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderDate", getOrderDate())
            .append("number", getNumber())
            .append("reservations", getReservations())
            .toString();
    }
}
